package com.aizuda.boot.modules.business.contractNumber.domain.entity;

import com.aizuda.core.bean.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author sangyirong
 * @ClassName ContractNumberSequenceEntity
 * @Version 1.0
 * @Date 2025/7/2 15:56
 */
@Data
@NoArgsConstructor
@Schema(description = "合同法人编号序号")
@TableName("contract_number_sequence")
public class ContractNumberSequenceEntity extends BaseEntity {

    @Schema(description = "合同法人ID")
    private Integer legalId;

    @Schema(description = "合同编号规则ID")
    private Long ruleId;

    @Schema(description = "合同编号前缀")
    private String rulePrefix;

    @Schema(description = "当前序号")
    private Integer currentNumber;

    @Schema(description = "生成时间")
    private Date generatedDate;
}
